using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using DevExpress.XtraReports.UI;
using NetROS.Tiers.Entities;

namespace ReportiPla
{
    public partial class IsplatnaLista : DevExpress.XtraReports.UI.XtraReport
    {
        public IsplatnaLista()
        {
            InitializeComponent();
        }
        public IsplatnaLista(Obracun obracun, string NazivTvrtke)
        {
            InitializeComponent();
            bindingSource1.DataSource = obracun;
            xrLabelTvrtka.Text = NazivTvrtke;
        }

        //private void xrLabel24_BeforePrint(object sender, System.Drawing.Printing.PrintEventArgs e)
        //{
        //    if (DetailReport4.GetCurrentRow() != null)
        //    {
        //        ObracunOsobaObustavaNaknada ooon = ((ObracunOsobaObustavaNaknada)DetailReport4.GetCurrentRow());
                
        //        if (ooon.IDObustavaNaknadaTipSource != null) ((XRLabel)sender).Text = (ooon.IDObustavaNaknadaTipSource.FaktorObracuna * ooon.Iznos).ToString("n2");
        //    }
        //}
      

    }
}
